package cn.school.student.common.enumdir;

import lombok.Getter;

@Getter
public enum CertificateTypeEnum {

    idCard("居民身份证","1"),
//    officer("军官证",1),
//    gang("港澳台居民身份证",2),
    passport("护照","2");
//    guowai("国外拘留证件",4),
//    residenceBooklet("居民户口簿",5),
//    drivingLicence("驾驶证",6),
//    socialSecurityCard("社保卡",7),
//    studentCard("学生证",8),
//    collectiveHouseholdRegister("集体户口簿",9);

    CertificateTypeEnum(String label,String value){
        this.label=label;
        this.value=value;
    }

    private String label;

    private String value;

    //通过label获取对应的枚举实例
    public static CertificateTypeEnum getByLabel(String name) {
        CertificateTypeEnum [] list = values();
        for (CertificateTypeEnum CertificateTypeEnum : list) {
            if ((CertificateTypeEnum.label).equals(name)) {
                return CertificateTypeEnum;
            }
        }
        return null;
    }

}
